package ee.serge.server.template;

import ee.serge.shared.Article;

public class KnowYourRightsTemplate extends Template {
   
   private Article article;

   public KnowYourRightsTemplate(String query) throws Exception {
      super(query);
   }

   @Override
   protected void init() throws Exception {
      article = articleServiceImpl.getArticle("loandersrights");
   }

   @Override
   protected String getTitle() {
      return "Know your rights";
   }

   @Override
   protected String getHeader() {
      return "Know your rights";
   }

   @Override
   protected String getHeader2() {
      return "";
   }

   @Override
   protected String getContent() {
      return article.getText();
   }

}
